<template>
    <div>
        <div style="opacity: 0.3;position: absolute">
            <img src="./img/jinzhengu.jpg" style="width: 1150px" >
        </div>
        <div>
            <img src="./img/小面2.jpg" style="position: absolute;width: 500px;border-radius: 260px;left: 630px;bottom: 40px">
        </div>
        <div style="padding-top: 50px;width: 1150px;clear: both">
            <el-form ref="form" :model="form" label-width="80px" style="width: 50%">
                <el-form-item label="美食名称">
                    <el-input v-model="form.name"></el-input>
                </el-form-item>
                <el-form-item label="分享类型">
                    <el-select v-model="form.region" placeholder="请选择分享类型">
                        <el-option label="黑暗料理" value="black"></el-option>
                        <el-option label="清新美食" value="white"></el-option>
                        <el-option label="养胃滋补" value="orange"></el-option>
                    </el-select>
                </el-form-item>
                <el-form-item label="是否原创">
                    <el-switch v-model="form.delivery"></el-switch>
                </el-form-item>
                <el-form-item label="菜的类型">
                    <el-checkbox-group v-model="form.type">
                        <el-checkbox label="热菜" name="type"></el-checkbox>
                        <el-checkbox label="凉菜" name="type"></el-checkbox>
                        <el-checkbox label="汤羹" name="type"></el-checkbox>
                        <el-checkbox label="主食" name="type"></el-checkbox>
                        <el-checkbox label="小吃" name="type"></el-checkbox>
                        <el-checkbox label="西餐" name="type"></el-checkbox>
                    </el-checkbox-group>
                </el-form-item>
                <el-form-item label="详细介绍">
                    <el-input type="textarea" v-model="form.desc"></el-input>
                </el-form-item>

                <el-form-item>
                    <el-button type="primary" @click="onSubmit">立即创建</el-button>
                    <el-button>取消</el-button>
                </el-form-item>
            </el-form>
        </div>

    </div>
</template>

<script>
    export default {
        name: "Share",
        data() {
            return {
                form: {
                    name: '',
                    region: '',
                    date1: '',
                    date2: '',
                    delivery: false,
                    type: [],
                    resource: '',
                    desc: ''
                }
            }
        },
        methods: {
            onSubmit() {
                console.log('submit!');
            }
        }
    }
</script>

<style scoped>

</style>